BlueCielo Meridian Enterprise Server 2013 Administrator's Guide | BlueCielo ECM Solutions

You are here: Appendix I: VBScript reference > About the event procedures > About the source events > PublisherSourceEvent_BeforePublish event

PublisherSourceEvent_BeforePublish event

Occurs in the source vault before publishing starts.

Syntax

PublisherSourceEvent_BeforePublish (destType, destAddress, _
    destDocId, destDocPath, destDocName, publishOptions)
Parameters
Parameter Description

destType

The name of the destination system link, for example, BC Meridian or Windows file system.

destAddress

The address of the destination system as shown on the Destination page, for example, DataStoreName@MachineName for the Meridian Enterprise system link.

destDocId

The ID of the document in the destination system. Contains an empty value if the document does not yet exist in the destination system.

destDocPath

The path of the document in the destination system.

destDocName

The name of the document in the destination system.

publishOptions

The publishing options to apply to the job. If the options were specified in the source system client application, they are passed in this parameter. For information about the publishing options supported by a specific system link, see the system link description in About the publishing modules.

Return value

An array of variants. The first element in the array is treated as a new value for DestDocID parameter.

Example

Public Function PublisherSourceEvent_BeforePublish (destType, destAddress, _
    destDocId, destDocPath, destDocName, publishOptions)
    Document.Log _
	"Started publishing: " & _ 
	"to " & destType & " '" & destAddress & "'" & _ 
	" document with ID '" & destDocId & "'" & _
	" with options '" & publishOptions & "'" & _
	" and path '" & destDocPath & "' and name '" & destDocName & "'"
End Function

Related concepts

VBScript reference

About the source events

About the destination events

Related information

The ExplorerSynchronization property set

PublishOptions property

PublisherSourceEvent_AfterPublish event

PublisherDestinationEvent_AfterPublish event


Copyright © 2000-2014 BlueCielo ECM Solutions

www.bluecieloecm.com